package Test;

import java.util.*;

/**
 * @author Alger
 * @date 2021/10/28  19:29
 */
public class ListAndMap {

    public static void main(String[] args) {
        HashMap<String, List<String>> stringListHashMap = new HashMap<>();
        stringListHashMap.put("1",Arrays.asList("a"));
        stringListHashMap.put("2",Arrays.asList("b"));
        stringListHashMap.put("3",Arrays.asList("c"));
        stringListHashMap.put("4",Arrays.asList("d"));

        Iterator<Map.Entry<String, List<String>>> iterator = stringListHashMap.entrySet().iterator();
        while (iterator.hasNext()){
            System.out.println(iterator.next());;
        }
    }
}
